//
//  BBYAllLookViewController.m
//  BearSiX
//
//  Created by Tom on 16/3/29.
//  Copyright © 2016年 Tom. All rights reserved.
//

#import "BBYAllLookViewController.h"
#import "STPhotoBroswer.h"

@interface BBYAllLookViewController ()<YDPhontDelegate>

@end

@implementation BBYAllLookViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.navigationController.navigationBar.tintColor = [UIColor blackColor];
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc]initWithTitle:@"..." style:(UIBarButtonItemStyleDone) target:self action:@selector(lookItem:)];
    self.view.backgroundColor = [UIColor blackColor];
    [self createUI];
}
-(void)viewWillAppear:(BOOL)animated{

    [super viewWillAppear:animated];
    //self.navigationController.navigationBar.barTintColor = [UIColor redColor];

    self.navigationController.navigationBar.barTintColor = [UIColor clearColor];
    self.navigationController.navigationBar.tintColor = [UIColor whiteColor];
    
}
-(void)lookItem:(UIBarButtonItem *)sender{

    
}
-(void)viewWillDisappear:(BOOL)animated{

    [super viewWillDisappear:animated];
    self.navigationController.navigationBar.barTintColor = [UIColor colorWithHexString:@"2f353e"];
}
-(void)createUI{

    NSArray *imageArr = @[[UIImage imageNamed:@"testYYY.jpg"],[UIImage imageNamed:@"testYYY.jpg"],[UIImage imageNamed:@"testYYY.jpg"]];
    STPhotoBroswer *photoVC = [[STPhotoBroswer alloc]initWithImageArray:imageArr currentIndex:1];
    photoVC.delegate = self;
    photoVC.frame = CGRectMake(0, 64, WINSIZEWIDTH, WINSIZEHEIGHT-64);
    photoVC.layer.masksToBounds = YES;
    [self.view addSubview:photoVC];
   
}
-(void)getTitleWithStr:(NSString *)titleStr{

    self.title = titleStr;
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
